package com.hqyj.emb.system.service;

import com.hqyj.emb.system.model.Permission;

import java.util.List;

public interface PermissionService {
    List<Permission> queryAllRolePermission();

    int updateRolePermission(Permission permission);

    int deleteRolePermission(int permissionId);

    Permission queryRolePermission(int permissionId);

    int updatePermission(Permission permission);

    List<Permission> queryRolePermissionByRoleId(int roleId);

    List<Permission> queryUserRoleByUserId(int userId);

    List<Permission> queryPermissionByPid(int pId);
}
